package org.charry.lib.config;

public class ConfigHelper {
	private static ConfigHelper _instance = null;
	private Config _instanceConfig = null;

	public static synchronized ConfigHelper getInstance() {
		if (_instance == null)
			_instance = new ConfigHelper();

		return _instance;
	}

	public void attachConfigInstance(Config config) {
		this._instanceConfig = config;
	}

	private ConfigHelper() {
		// NOOP
	}

	public Config getConfigInstance() {
		return this._instanceConfig;
	}
}